import request from '@/utils/request'

// get 获得敏感词列表数据
export function getDictionaryItemList(params) {
  return request({
    url: '/ops/dictionaryItem/list',
    method: 'get',
    params
  })
}

// post 新增敏感词列表数据
export function addDictionary(data) {
  return request({
    url: '/ops/dictionaryItem/add',
    method: 'post',
    data
  })
}

// post 修改敏感词列表数据
export function updateDictionary(data) {
  return request({
    url: '/ops/dictionaryItem/update',
    method: 'post',
    data
  })
}

// get 删除敏感词列表数据
export function deleteDictionary(params) {
  return request({
    url: '/ops/dictionaryItem/delete',
    method: 'get',
    params: { id: params }
  })
}

// get 获得敏感词屏蔽记录列表数据
export function getSensitiveHideLogList(params) {
  return request({
    url: '/ops/sensitiveHideLog/list',
    method: 'get',
    params
  })
}
